# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-sound-recorder
pkgver=3.34.0
pkgrel=2
pkgdesc="A simple and modern sound recorder"
url="https://wiki.gnome.org/Apps/SoundRecorder"
arch="all !s390x !mips !mips64" # Dependency gjs-dev is not available on s390x
license="GPL-2.0-or-later"
makedepends="gjs-dev glib-dev gtk+3.0-dev gobject-introspection-dev meson"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-sound-recorder/${pkgver%.*}/gnome-sound-recorder-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="cb28f1f93f78cae5cc98750f937f60abb326065cdbbb1ee48146daceb9e34f03bc9bf4d78b7a149e579654673b9879fb249fd5a370a19764f01961c565b901ee  gnome-sound-recorder-3.34.0.tar.xz"
